<?php
	if($form->isFieldError('Client.username'))
		e($form->error('Client.username', null, array('class' => 'message')));
?>

<?php
	if($form->isFieldError('Client.password'))
		e($form->error('Client.password', null, array('class' => 'message'))); 
?>

<?php
	if($form->isFieldError('Client.email'))
		e($form->error('Client.email', null, array('class' => 'message')));
?>

<h2> Sign up for a Steroid Client Account </h2>

<?php
	e($form->create('Client', array('action' => 'signup')));
?>

	<fieldset>
	
		<label for = "ClientFirst_name">
			<span> First Name </span>
		</label>
		
		<?php
			e($form->text('first_name', array('class' => 'fullwidth')));
		?>
		
		<label for = "ClientLast_name">
			<span> Last Name </span>
		</label>
		
		<?php
			e($form->text('last_name', array('class' => 'fullwidth')));
		?>
	
		<label for = "ClientUsername" class = "usernamelabel">
			<span> Choose a Client Username </span>
		</label>
		
		<?php
			e($form->text('username', array('class' => 'fullwidth')));
		?>
		
		<label for = "ClientEmail" class = "emaillabel">
			<span> Your Email </span>
		</label>
		
		<?php
			e($form->text('email', array('class' => 'fullwidth')));
		?>
		
		<label for = "ClientPassword" class = "passwordlabel">
			<span> Password </span>
		</label>
		
		<?php
			e($form->password('password', array('class' => 'fullwidth')));
		?>
		<!-- COMMENTING OUT NEED FOR REPEATING PASSWORDS
		<label for = "ClientPasswordRepeat" class = "passwordrepeatlabel">
			<span> Re Password </span>
		</label>
		-->
		
		<?php
			//e($form->password('password2', array('class' => 'fullwidth')));
		?>

		<?php
			e($form ->submit('Sign up', array('div' => false, 'class' => 'submitbutton')));
		?>
		
	</fieldset>

<?php
	e($form->end());
?>